package com.hezhi.project.module.recipient.mapper;

import com.hezhi.project.module.recipient.domain.Recipient;
import java.util.List;

import org.apache.ibatis.annotations.Param;	

/**
 * 通知消息接收 数据层
 * 
 * @author hezhi
 * @date 2018-08-13
 */
public interface RecipientMapper 
{
	/**
     * 查询通知消息接收信息
     * 
     * @param noticeId 通知消息接收ID
     * @return 通知消息接收信息
     */
	public Recipient selectRecipientById(Integer noticeId);
	
	/**
     * 查询通知消息接收列表
     * 
     * @param recipient 通知消息接收信息
     * @return 通知消息接收集合
     */
	public List<Recipient> selectRecipientList(Recipient recipient);
	
	/**
     * 新增通知消息接收
     * 
     * @param recipient 通知消息接收信息
     * @return 结果
     */
	public int insertRecipient(Recipient recipient);
	
	/**
     * 修改通知消息接收
     * 
     * @param recipient 通知消息接收信息
     * @return 结果
     */
	public int updateRecipient(Recipient recipient);
	
	/**
     * 批量删除通知消息接收
     * 
     * @param noticeIds 需要删除的数据ID
     * @return 结果
     */
	public int deleteRecipientByIds(Integer[] noticeIds);
	
	void insertRecipientAll(@Param("noticeId")String noticeId,@Param("roleId")String roleId,@Param("gradeId")String gradeId,@Param("classesId")String classesId,@Param("parentId")String parentId);
	
}